package xine.demo.ssm.dao.impl;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Repository;

import xine.demo.ssm.dao.BaseDao;
import xine.demo.ssm.dao.UserDao;

import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Repository
public class UserDaoJdbcImpl extends BaseDaoJdbcImpl implements UserDao {

    @Override
    public List<Map<String, Object>> queryAll() {
        return getList("SELECT * FROM t_competition_player LIMIT 5");
    }
}
